<?php
namespace backend\models;
use Yii;
use yii\base\Model;
use yii\web\NotFoundHttpException;


/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017\11\21 0021
 * Time: 9:59
 */
class NewPackageOneForm extends Model{
    public $packagename;
    public $packagetype;
    public $packageaccess;
    public $accessuserids;

    public function  rules()
    {
        return [
            ['packagename','required'],
            ['packagename','string'],//,'min'=>4,'max'=>50
        ];
    }

    public function attributeLabels()
    {
        return [
            'packagename'=>'资产包名称',
            'packagetype'=>'资产包类型',
            'packageaccess'=>'访问权限',
            'accessuserids'=>'公开部门',

        ];
    }



}
